package com.kong.rest;

import com.kong.feign.UserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <dl>
 * <dd>Description: 功能描述</dd>
 * <dd>Company: 大城若谷信息技术有限公司</dd>
 * <dd>@date：2017/6/13 16:36</dd>
 * <dd>@author：Kong</dd>
 * </dl>
 */
@RestController
@RequestMapping("/api/admin/users")
public class UserRestController {

//    @Autowired
//    private UserService userService;

    @Autowired
    private UserClient userClient;

//    @GetMapping()
//    public Object search() {
//        List<User> users = userService.readUsers();
//        return users;
//    }

    @GetMapping(value = "/list")
    public Object feignSearch(){
        return userClient.search();
    }

}
